package com.yhq.basic;

/**
 * @author hqyin
 * @date 2023/2/8 10:06 上午
 */
public class TestInstanceof {
    public static void main(String[] args) {
        Object obj = new String("x");
        if (!(obj instanceof TestInstanceof)) {
            throw new RuntimeException("xxx");
        }
        TestInstanceof tt = (TestInstanceof) obj;
        System.out.println(tt);
    }
}
